class UrlMappings {
	static mappings = {
	  	/*"/$controller/$action?/$id?"{
	      	constraints {
			 // apply constraints here
		  	}
	  	}*/
	
		"/" {
	  		controller = 'softwareIdea'
			action = 'list'
	  	}
	
		"/ideas/$permalink" {
	  		controller = 'softwareIdea'
			action = 'show'
	  	}
	
		"/ideas/new/form" {
	  		controller = 'softwareIdea'
			action = 'create'
	  	}
	
	    "/ideas/new" {
	  		controller = 'softwareIdea'
			action = 'save'
	  	}
	
		"/login/form" {
	  		controller = 'user'
			action = 'login'
	  	}
	
	    "/logout" {
	  		controller = 'user'
			action = 'handleLogout'
	  	}
	
		"/auth" {
	  		controller = 'user'
			action = 'handleLogin'
	  	}
	
		"/people/new/form" {
	  		controller = 'user'
			action = 'register'
	  	}
	
	    "/people/new" {
	  		controller = 'user'
			action = 'handleRegistration'
	  	}
	}	
}
